package com.shteo.crmd.wechat;

import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * Created by Akuma on 16/9/28.
 */

@SpringBootApplication
@EnableDiscoveryClient
public class CRMWeChatServiceApp implements CommandLineRunner{

    public static void main(String[] args) throws Exception{
        new SpringApplicationBuilder(CRMWeChatServiceApp.class).web(true).run(args);
    }

    //程序首次启动调用
    public void run(String... strings) throws Exception {
        System.out.println("CRM Server Boot Successfully");
    }
}
